package csrf

import (
	"github.com/iris-contrib/middleware/csrf"
	"github.com/kataras/iris"
)

func Configurator(app *iris.Application) {
	protect := csrf.Protect([]byte("9AB0F421E53A477C084477AEA06096F5"),
		csrf.Secure(true), csrf.CookieName("x-csrf-token"))
	app.Use(protect)
}
